//
//  Fraction.h
//  02-ClassAndObject
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 高雅馨. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
/**** 分子****/
@property (nonatomic, assign) NSInteger member;

/****分母****/
@property (nonatomic, assign) NSInteger deno;

- (instancetype)initWithMemeber:(NSInteger)member
                                               Deno:(NSInteger)deno;

+ (instancetype)fractionWithMemeber:(NSInteger)member
                                                       Deno:(NSInteger)deno;
// 两个分数的和
- (Fraction *)addAnotherFraction:(Fraction *)anotherFraction;
// 两个分数的差
- (Fraction *)subAnotherFraction:(Fraction *)anotherFraction;
// 两个分数的积
- (Fraction *)mulAnotherFraction:(Fraction *)anotherFraction;
// 两个分数的商
- (Fraction *)divAnotherFraction:(Fraction *)anotherFraction;

@end
